package com.guanjian.spring;

import com.guanjian.spring.bean.TestService;
import com.guanjian.spring.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author guanjian
 * @description
 * @date 2019/8/6 9:26
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        System.out.println(context.getBean(TestService.class));

    }
}
